import request from '@/utils/request'

// 查询渠道推送记录列表
export function listChannelPushDis(query) {
  return request({
    url: '/channel/channelPushDis/list',
    method: 'get',
    params: query
  })
}

// 查询渠道推送记录详细
export function getChannelPushDis(id) {
  return request({
    url: '/channel/channelPushDis/' + id,
    method: 'get'
  })
}

// 新增渠道推送记录
export function addChannelPushDis(data) {
  return request({
    url: '/channel/channelPushDis',
    method: 'post',
    data: data
  })
}

// 修改渠道推送记录
export function updateChannelPushDis(data) {
  return request({
    url: '/channel/channelPushDis',
    method: 'put',
    data: data
  })
}

// 删除渠道推送记录
export function delChannelPushDis(id) {
  return request({
    url: '/channel/channelPushDis/' + id,
    method: 'delete'
  })
}

// 操作记录
export function pushOperate(data) {
  return request({
    url: '/channel/channelPushDis/pushOperate',
    method: 'post',
    data: data
  })
}


// 根据手机号获取渠道记录
export function channelCustomerList(data) {
  return request({
    url: '/channel/channelPushDis/getChannelCustomerList',
    method: 'post',
    data: data
  })
}
